        <!DOCTYPE html>
        <html>
        <head>
                <meta charset="utf-8">
        <title>SimplexVertex class / box2d Library / Dart Documentation</title>
        <link rel="stylesheet" type="text/css"
            href="../styles.css">
        <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,700,800" rel="stylesheet" type="text/css">
        <link rel="shortcut icon" href="../favicon.ico">
        
        </head>
        <body data-library="box2d" data-type="SimplexVertex">
        <div class="page">
        <div class="header">
          <a href="../index.html"><div class="logo"></div></a>
          <a href="../index.html">Dart Documentation</a>
         &rsaquo; <a href="../box2d.html">box2d</a> &rsaquo; <a href="../box2d/SimplexVertex.html">SimplexVertex</a>        <div id="search-box">
          <input type="search" name="q" id="q" autocomplete="off"
              class="search-input" placeholder="Search API">
        </div>
        
      </div>
      <div class="drop-down" id="drop-down"></div>
      
        <div class="nav">
        
</div>
<div class="content">
        <h2><strong>SimplexVertex</strong>
          class
        </h2>
        
<button id="show-inherited" class="show-inherited">Hide inherited</button>
<div class="doc">
<pre class="source">
class SimplexVertex {
 final vec2 wA; // support point in shapeA
 final vec2 wB; // support point in shapeB
 final vec2 w; // wB - wA
 num a; // barycentric coordinate for closest point
 int indexA; // wA index
 int indexB; // wB index

 SimplexVertex() :
   wA = new vec2.zero(),
   wB = new vec2.zero(),
   w = new vec2.zero(),
   a = 0,
   indexA = 0,
   indexB = 0 { }

 void setFrom(SimplexVertex sv) {
   wA.copyFrom(sv.wA);
   wB.copyFrom(sv.wB);
   w.copyFrom(sv.w);
   a = sv.a;
   indexA = sv.indexA;
   indexB = sv.indexB;
 }

 String toString() =&gt; "wA: $wA, wB: $wB, w: $w";
}
</pre>
</div>
<div>
<h3>Constructors</h3>
<div class="method"><h4 id="SimplexVertex">
<button class="show-code">Code</button>
new <strong>SimplexVertex</strong>() <a class="anchor-link" href="#SimplexVertex"
              title="Permalink to SimplexVertex.SimplexVertex">#</a></h4>
<div class="doc">
<pre class="source">
SimplexVertex() :
 wA = new vec2.zero(),
 wB = new vec2.zero(),
 w = new vec2.zero(),
 a = 0,
 indexA = 0,
 indexB = 0 { }
</pre>
</div>
</div>
</div>
<div>
<h3>Properties</h3>
<div class="field"><h4 id="a">
<button class="show-code">Code</button>
num         <strong>a</strong> <a class="anchor-link"
            href="#a"
            title="Permalink to SimplexVertex.a">#</a>
        </h4>
        <div class="doc">
<pre class="source">
a
</pre>
</div>
</div>
<div class="field"><h4 id="indexA">
<button class="show-code">Code</button>
int         <strong>indexA</strong> <a class="anchor-link"
            href="#indexA"
            title="Permalink to SimplexVertex.indexA">#</a>
        </h4>
        <div class="doc">
<pre class="source">
indexA
</pre>
</div>
</div>
<div class="field"><h4 id="indexB">
<button class="show-code">Code</button>
int         <strong>indexB</strong> <a class="anchor-link"
            href="#indexB"
            title="Permalink to SimplexVertex.indexB">#</a>
        </h4>
        <div class="doc">
<pre class="source">
indexB
</pre>
</div>
</div>
<div class="field"><h4 id="w">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>w</strong> <a class="anchor-link"
            href="#w"
            title="Permalink to SimplexVertex.w">#</a>
        </h4>
        <div class="doc">
<pre class="source">
w
</pre>
</div>
</div>
<div class="field"><h4 id="wA">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>wA</strong> <a class="anchor-link"
            href="#wA"
            title="Permalink to SimplexVertex.wA">#</a>
        </h4>
        <div class="doc">
<pre class="source">
wA
</pre>
</div>
</div>
<div class="field"><h4 id="wB">
<button class="show-code">Code</button>
final <a href="../vector_math/vec2.html">vec2</a>         <strong>wB</strong> <a class="anchor-link"
            href="#wB"
            title="Permalink to SimplexVertex.wB">#</a>
        </h4>
        <div class="doc">
<pre class="source">
wB
</pre>
</div>
</div>
</div>
<div>
<h3>Methods</h3>
<div class="method"><h4 id="setFrom">
<button class="show-code">Code</button>
void <strong>setFrom</strong>(<a href="../box2d/SimplexVertex.html">SimplexVertex</a> sv) <a class="anchor-link" href="#setFrom"
              title="Permalink to SimplexVertex.setFrom">#</a></h4>
<div class="doc">
<pre class="source">
void setFrom(SimplexVertex sv) {
 wA.copyFrom(sv.wA);
 wB.copyFrom(sv.wB);
 w.copyFrom(sv.w);
 a = sv.a;
 indexA = sv.indexA;
 indexB = sv.indexB;
}
</pre>
</div>
</div>
<div class="method"><h4 id="toString">
<button class="show-code">Code</button>
String <strong>toString</strong>() <a class="anchor-link" href="#toString"
              title="Permalink to SimplexVertex.toString">#</a></h4>
<div class="doc">
<div class="inherited">
<p>Returns a string representation of this object.</p>
<div class="docs-inherited-from">docs inherited from Object </div></div>
<pre class="source">
String toString() =&gt; "wA: $wA, wB: $wB, w: $w";
</pre>
</div>
</div>
</div>
        </div>
        <div class="clear"></div>
        </div>
        <div class="footer">
          
        </div>
        <script async src="../client-live-nav.js"></script>
        </body></html>
        
